﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.GLB.Global
{
    public class Pager
    {
        public Pager(int size, int index)
        {
            Size = size;
            Index = index;
        }

        public int Size { get; set; }
        public int Index { get; set; }


        public int GetSumOfPage(int sumOfItems)
        {
            return (sumOfItems - 1) / Size + 1;
        }
    }
}
